#!/bin/bash
# get all filename in specified path

path=/home/ynos/streaming_chen/content/temp_video/

files=$(ls $path)

echo 'ffconcat version 1.0' >> video_list
for filename in $files
do
	echo "file "$path$filename >> video_list
done

ffmpeg -y -f concat -safe 0 -i video_list -c copy stream1.mp4

rm -rf video_list

for filename in $files
do
	rm -rf $path$filename
done